﻿
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
using PiUi.View;

namespace PiUi.Froms
{
    public partial class AboutView:BaseView
    {
        public AboutView()
        {
            InitializeComponent();
 
        }


        public override void LoadTheme()
        {

            foreach (Control btns in this.Controls)
            {

                if (btns.GetType() == typeof(Button))
                {

                    Button btn = (Button)btns;

                    btn.BackColor = ThemeColor.PrimaryColor;
                    btn.ForeColor = Color.White;
                    btn.FlatAppearance.BorderColor = ThemeColor.SecondaryColor;


                }
            }

 
            labelVersion.ForeColor = ThemeColor.SecondaryColor;
            label5.ForeColor = ThemeColor.PrimaryColor; 

        }

        private void AboutView_Load(object sender, System.EventArgs e)
        {

        }

        private void buttonRetunGitee_Click(object sender, System.EventArgs e)
        {
            Process.Start(new ProcessStartInfo("https://gitee.com/Li_zhengyuan/pi-ui") { UseShellExecute = true });
        }

        private void pictureBox1_Click(object sender, System.EventArgs e)
        {

        }
    }
}
